package com.ease.web.xwt.component;

/**
 * 
 * @author nathanleewei
 * 
 */
public class XTextarea extends XAbstractComponent {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6643781909936876482L;

	private int cols = 50;

	private int rows = 8;

	private boolean nowrap;

	protected boolean readonly = false;

	protected boolean disabled = false;

	public XTextarea() {
		this.setWidth("100%");
	}

	protected String getTemplate() {
		return TEMPLATE_X_TEXTAREA;
	}

	/**
	 * @return Returns the cols.
	 */
	public int getCols() {
		return cols;
	}

	/**
	 * @param cols
	 *            The cols to set.
	 */
	public void setCols(int cols) {
		this.cols = cols;
	}

	/**
	 * @return Returns the disabled.
	 */
	public boolean isDisabled() {
		return disabled;
	}

	/**
	 * @param disabled
	 *            The disabled to set.
	 */
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	/**
	 * @return Returns the nowrap.
	 */
	public boolean isNowrap() {
		return nowrap;
	}

	/**
	 * @param nowrap
	 *            The nowrap to set.
	 */
	public void setNowrap(boolean nowrap) {
		this.nowrap = nowrap;
	}

	/**
	 * @return Returns the readonly.
	 */
	public boolean isReadonly() {
		return readonly;
	}

	/**
	 * @param readonly
	 *            The readonly to set.
	 */
	public void setReadonly(boolean readonly) {
		this.readonly = readonly;
	}

	/**
	 * @return Returns the rows.
	 */
	public int getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            The rows to set.
	 */
	public void setRows(int rows) {
		this.rows = rows;
	}

}